package com.wz.project.log.log.service.impl;

import java.util.List;
import com.wz.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.log.log.mapper.WmsAgvLogMapper;
import com.wz.project.log.log.domain.WmsAgvLog;
import com.wz.project.log.log.service.IWmsAgvLogService;
import com.wz.common.utils.text.Convert;

/**
 * AGV接口日志Service业务层处理
 * 
 * @author wz
 * @date 2023-12-13
 */
@Service
public class WmsAgvLogServiceImpl implements IWmsAgvLogService 
{
    @Autowired
    private WmsAgvLogMapper wmsAgvLogMapper;

    /**
     * 查询AGV接口日志
     * 
     * @param inJson AGV接口日志ID
     * @return AGV接口日志
     */
    @Override
    public WmsAgvLog selectWmsAgvLogById(String inJson)
    {
        return wmsAgvLogMapper.selectWmsAgvLogById(inJson);
    }

    /**
     * 查询AGV接口日志列表
     * 
     * @param wmsAgvLog AGV接口日志
     * @return AGV接口日志
     */
    @Override
    public List<WmsAgvLog> selectWmsAgvLogList(WmsAgvLog wmsAgvLog)
    {
        return wmsAgvLogMapper.selectWmsAgvLogList(wmsAgvLog);
    }

    /**
     * 新增AGV接口日志
     * 
     * @param wmsAgvLog AGV接口日志
     * @return 结果
     */
    @Override
    public int insertWmsAgvLog(WmsAgvLog wmsAgvLog)
    {
        wmsAgvLog.setCreateTime(DateUtils.getNowDate());
        return wmsAgvLogMapper.insertWmsAgvLog(wmsAgvLog);
    }

    /**
     * 修改AGV接口日志
     * 
     * @param wmsAgvLog AGV接口日志
     * @return 结果
     */
    @Override
    public int updateWmsAgvLog(WmsAgvLog wmsAgvLog)
    {
        return wmsAgvLogMapper.updateWmsAgvLog(wmsAgvLog);
    }

    /**
     * 删除AGV接口日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteWmsAgvLogByIds(String ids)
    {
        return wmsAgvLogMapper.deleteWmsAgvLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除AGV接口日志信息
     * 
     * @param inJson AGV接口日志ID
     * @return 结果
     */
    @Override
    public int deleteWmsAgvLogById(String inJson)
    {
        return wmsAgvLogMapper.deleteWmsAgvLogById(inJson);
    }
}
